<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script> 
		function studnet(){
				 var a=0;
				 var i=0
				 while(i<5){var f=parseInt(prompt('请输入成绩:',''));
				 
					 if(f<=0||f>=150){
						 console.log("输入错误");
						
						 continue;
					 }else if(isNaN(f)){
						 console.log("输入错误");
						 continue;
					 }
					 a=f+a;
					 i++;
				 }document.write(a);
			 }
			 
			 
		</script>
	</head>
	<body>
		<input name="btn" type="button" value="请输入成绩"
  onclick="studnet()"   />
	</body>
</html>
